@import "../../../../base/base";

.cityLayer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: hidden;
  background-color: #fff;

  &__title {
    position: absolute;
    top: 0;
    width: 100%;
    height: 44px;
    line-height: 44px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    border-bottom: 1px solid #E2E2E2;
  }

  &__close {
    position: absolute;
    width: 44px;
    height: 44px;
    text-align: center;
    font-weight: normal;
  }

  &__content {
    position: absolute;
    width: 100%;
    top: 44px;
    bottom: 0;
    background-color: #F5F5F5;
    overflow-y: scroll;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .cityBlock {
    padding: 10px 15px;

    &__label {
      font-size: 12px;
      color: #9f9fa0;
      margin-bottom: 14px;
    }

    &__wrap {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
    }

    &__item {
      width: 116px;
      height: 32px;
      line-height: 32px;
      background-color: #fff;
      border: 1px solid $border;
      color: #999;
      margin-bottom: 10px;
      text-align: center;
    }
  }

  .cityList {
    &__label,
    &__item {
      color: #333;
      font-size: 12px;
    }

    &__label {
      height: 28px;
      line-height: 28px;
      padding: 0 15px;
      border-top: 1px solid $border;
      border-bottom: 1px solid $border;
    }

    &__wrap {
      margin: 0;
      padding: 0 15px;
      background-color: #fff;
    }

    &__item {
      list-style: none;
      height: 48px;
      line-height: 48px;

      &:nth-child(n + 2) {
        border-top: 1px solid $border;
      }
    }
  }

  &__index {
    position: absolute;
    padding: 0 6px;
    top: 80px;
    right: 0;
  }

  .cityIndex {
    &__list {
      width: 40px;
      padding: 0;
      list-style: none;
    }

    &__item {
      list-style: none;
      margin-bottom: 4px;
      text-align: center;

      a {
        text-decoration: none;
        font-size: 12px;
        color: #5fb5f9;
      }
    }
  }

}
